package com.java.asvitelskyy.company;

public abstract class Worker {

    private String name;
    private int id;

    public abstract int calcSalary();
    public abstract String getWorker();

    protected Worker(String name, int id) {
        this.setName(name);
        this.setId(id);
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
}
